package com.task.src.service.Impl;

import com.task.src.dto.User;
import com.task.src.mapper.UserMapper;
import com.task.src.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public int insertUser(String uname,String psd,String email) {
        return userMapper.insertUser(uname,psd,email);
    }

    @Override
    public int selectUser(String uname,String psd) {
        return userMapper.selectUser(uname,psd);
    }
}
